package cn.tonyandmoney.baidu.tts.event

import com.baidu.tts.client.SpeechError

/**
 * Created by niantuo on 2018/2/28.
 * 调用speak 方法的回调事件
 * [CODE_SPEAK]  请求事件，请求朗读文字
 */
data class SpeakEvent(var code: Int = 0,
                      var message: String = "",
                      var progress: Int = 0,
                      var error: SpeechError? = null,
                      var id: String? = null) {

    companion object {
        const val CODE_START = 1
        const val CODE_FINISH = 1000
        const val CODE_PROGRESS = 2
        const val CODE_ERROR = -1
        const val CODE_SPEAK = 2000
    }
}